#include <iostream>  
using namespace std;


class Box
{
    friend double getVolume(Box _box);
    public:
        Box(double _length,double _breadth , double _height)
        {
            length = _length;
            breadth = _breadth;
            height = _height;
        }
        
    private:
        double length; // Length of a box  
        double breadth; // Breadth of a box  
        double height; // Height of a box
};

double getVolume(Box _box)
{
    return _box.length*_box.breadth*_box.height;
}

int main()
{
    Box Box1(5,6,7);  
    
    cout<<getVolume(Box1)<<endl;  

    return 0;
}